package observer.plan_1;

/**
 * @author chenyuan
 * @date 2020/10/30 9:32
 */
public class Client {
    public static void main(String[] args) {
        // 创建接入方
        CurrentConditions currentConditions = new CurrentConditions();
        // 创建 WeatherData 并将 currentConditions 聚合进去
        WeatherData weatherData = new WeatherData(currentConditions);
        // 更新数据
        weatherData.setData(30, 150, 40);
        // 如果天气变化，同样的执行上面一行
    }
}
